/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.base.entity.supplier;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 供应商Entity
 * @author LV
 * @version 2021-03-01
 */
@Table(name="t_supplier_custom_broker", alias="a", columns={
		@Column(name="supplier_custom_broker_id", attrName="supplierCustomBrokerId", label="签约报关行ID", isPK=true),
		@Column(name="custom_broker", attrName="customBroker", label="报关行"),
		@Column(name="supplier_id", attrName="supplierId.supplierId", label="供应商ID"),
	}, orderBy="a.supplier_custom_broker_id ASC"
)
public class SupplierCustomBroker extends DataEntity<SupplierCustomBroker> {
	
	private static final long serialVersionUID = 1L;
	private String supplierCustomBrokerId;		// 签约报关行ID
	private String customBroker;		// 报关行
	private Supplier supplierId;		// 供应商ID 父类
	
	public SupplierCustomBroker() {
		this(null);
	}


	public SupplierCustomBroker(Supplier supplierId){
		this.supplierId = supplierId;
	}
	
	public String getSupplierCustomBrokerId() {
		return supplierCustomBrokerId;
	}

	public void setSupplierCustomBrokerId(String supplierCustomBrokerId) {
		this.supplierCustomBrokerId = supplierCustomBrokerId;
	}
	
	@Length(min=0, max=64, message="报关行长度不能超过 64 个字符")
	public String getCustomBroker() {
		return customBroker;
	}

	public void setCustomBroker(String customBroker) {
		this.customBroker = customBroker;
	}
	
	@Length(min=0, max=64, message="供应商ID长度不能超过 64 个字符")
	public Supplier getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Supplier supplierId) {
		this.supplierId = supplierId;
	}
	
}